package com.lostandfound.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 物品类别
 * 丢失物品所属大类
 *
 */
@Entity
@Table(name = "laf_item_t")
public class ItemType implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long iid;//ID
	private String iname;//物品所属大类
	private String istatus = "0";//状态 0:正常,1:删除
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) 
    @Column(name = "i_id", unique = true, nullable = false, length = 8)
	public Long getIid() {
		return iid;
	}
	public void setIid(Long iid) {
		this.iid = iid;
	}
	
	@Column(name = "i_name",nullable = false, length = 64)
	public String getIname() {
		return iname;
	}
	public void setIname(String iname) {
		this.iname = iname;
	}
	
	@Column(name = "i_status",nullable = false, length = 1)
	public String getIstatus() {
		return istatus;
	}
	public void setIstatus(String istatus) {
		this.istatus = istatus;
	}

}
